package com.sell.contorller;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.sell.entity.Orders;
import com.sell.service.EmployeesService;
import com.sell.service.OrdersService;

import jxl.common.Logger;

@Controller
@RequestMapping("/orders")
public class OrdersContorller {
	private Logger logger = Logger.getLogger(OrdersContorller.class);
	
	@Resource
	private EmployeesService employeesService;
	
	@Resource
	private OrdersService ordersService;

	@RequestMapping(value = "/addOrders.html", method = RequestMethod.GET)
	public String addOrders(@ModelAttribute("orders") Orders orders, Model model,HttpSession session) {
		int order = ordersService.addOrders(orders);
		return "addOrders";
	}

	
	public String getAllOrders(){
		
		
		return null;
	}
}
